package cn.zhuama.system.mapper;

import cn.zhuama.system.domain.RoleMenu;
import cn.zhuama.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Jack
 * @since 2025-03-27
 */
@Repository
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    void deleteByMenuId(Long id);

    void insertRoleAndMenu(@Param("roleId") Long roleId, @Param("menus")List<Long> menus);


    void deleteByRoleId(Long id);
}
